package com.education.basic.service;

import com.education.basic.entity.Administrator;
import com.yunshangwoniu.core.baseService.BaseService;
import com.yunshangwoniu.core.page.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface AdministratorService extends BaseService<Administrator>
{
	/**
	 * 登录
	 * @param username
	 * @param password
	 * @return
	 */
	Administrator login(String username,String password);
	
	/**
	 * 新增一个管理员 (不要用BasicDao 中的saveObject)
	 * @param ad
	 * @return
	 */
	Administrator saveNewAdministrator(Administrator ad);

    /**
     * 分页列表
     * @param currentPage
     * @param pageSize
     * @param params
     * @param request
     * @return
     */
    Page<Administrator> queryAdministro(int currentPage,int pageSize,Map<String,Object> params,HttpServletRequest request);
}
